// pages/index/index.js
const App =  getApp();
  
Page({
  /**
   * 页面的初始数据
   */
  data: {
    isHide: true,
    mode: 0,
  },
  onLoad() {
    this.setData({
      navHeight: App.globalData.navHeight,
      statusHeight: App.globalData.statusBarHeight,
    })
  },
  changeHide(e) {
    this.setData({
      mode: e.target.dataset.mode,
      isHide: false,
    })
  },
  toOrderList(e) {
    wx.navigateTo({
      url: '../../pages/orderList/orderList?listby=' + e.target.dataset.listby,
      success: (result) => {},
      fail: () => {},
      complete: () => {},
    })
  },
})
